package com.cavy.platform.server;

import org.springframework.validation.BindingResult;

/**
 * 绑定结果工具类
 */
@Deprecated
public class BindingResultUtil {

    public static void check(BindingResult result) {
        if (!result.hasErrors()) {
            return;
        }

        throw new BindingErrorException(result.getAllErrors());
    }
}
